<script>
	import Vue from 'vue';
	export default {
		onLaunch: function() {
			console.log('App Launch')
			// 网路监听（用户目前断网，切换wifi）
			this.lib.NetWork.On();
			// 初始化用户状态
			this.User.__init();
			// #ifdef APP-PLUS
			// 更新检测
			this.lib.Update();
			// #endif
			// 获取当前手机信息
			uni.getSystemInfo({
				success: function(e) {
					// #ifndef MP
					Vue.prototype.StatusBar = e.statusBarHeight;
					if (e.platform == 'android') {
						Vue.prototype.CustomBar = e.statusBarHeight + 50;
					} else {
						Vue.prototype.CustomBar = e.statusBarHeight + 45;
					};
					// #endif
					// #ifdef MP-WEIXIN
					Vue.prototype.StatusBar = e.statusBarHeight;
					let custom = wx.getMenuButtonBoundingClientRect();
					Vue.prototype.Custom = custom;
					Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
					// #endif		
					// #ifdef MP-ALIPAY
					Vue.prototype.StatusBar = e.statusBarHeight;
					Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
					// #endif
				}
			});
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/* uni.css - 通用组件、模板样式库，可以当作一套ui库应用 */
	/* @import './static/style/common.css'; */
	@import './common/uni.css';
	@import "colorui/main.css";
	@import "colorui/icon.css";
	@import "colorui/animation.css";
	
	/* 原生组件模式下需要注意组件外部样式 */
		/* m-input {
			width: 100%;
			min-height: 100%;
			display: flex;
		}
	
		.content {
			display: flex;
			flex: 1;
			flex-direction: column;
			background-color: #efeff4;
		}
	
		.input-group {
			background-color: #ffffff;
			margin-top: 40upx;
			position: relative;
		}
	
		.input-group::before {
			position: absolute;
			right: 0;
			top: 0;
			left: 0;
			height: 1upx;
			content: '';
			-webkit-transform: scaleY(.5);
			transform: scaleY(.5);
			background-color: #c8c7cc;
		}
	
		.input-group::after {
			position: absolute;
			right: 0;
			bottom: 0;
			left: 0;
			height: 1upx;
			content: '';
			-webkit-transform: scaleY(.5);
			transform: scaleY(.5);
			background-color: #c8c7cc;
		}
	
		.input-row {
			display: flex;
			flex-direction: row;
			position: relative;
		}
	
		.input-row .title {
			width: 20%;
			height: 50upx;
			min-height: 50upx;
			padding: 15upx 0;
			padding-left: 30upx;
			line-height: 50upx;
		}
	
		.input-row.border::after {
			position: absolute;
			right: 0;
			bottom: 0;
			left: 15upx;
			height: 1upx;
			content: '';
			-webkit-transform: scaleY(.5);
			transform: scaleY(.5);
			background-color: #c8c7cc;
		}
	
		.btn-row {
			margin-top: 50upx;
			padding: 20upx;
		}
	
		button.primary {
			background-color: #0faeff;
		}
 */
</style>

